
<div class="alert margin-bottom border-bottom clearfix">
		<div class="row">
			<div class="col-lg-8">
				<h2 class="title-text strong ">
					Review of Mr.
					<?= ucfirst(strtolower($profile['details']->title));?>
				</h2>

			</div>
			<!-- 
			<div class="col-lg-4  text-right">
				<a href="#" class="title-text text-danger">Write Review</a>
			</div>
			 -->
			<div class="col-lg-4  text-right">

				<a data-toggle="collapse" data-parent="#accordion"
					href="#collapseThree" class="title-text text-danger">Write Review </a>
			</div>
		</div>
		<div class="row">
			<p class="col-lg-12 small text-info">Help make it easier for other
				users to choose the right lawyer by sharing your experience with
				this attorney. It's fast, simple, and safe.</p>
		</div>
	</div>
	<div id="collapseThree" class="panel-collapse collapse">
		<div class="panel-body">


			<form class="row form-inline" role="form" name="post_review_form"
				id="post_review_form" method="POST">
				<span class="pull-right text-danger" id="rev_alert"></span> <input
					type="hidden" name="rev_profile_id" id="rev_profile_id"
					value="<?= $profile['details']->id; ?>"> <input type=hidden
					name="mem_id" id="mem_id"
					value="<?= $this->session->userdata('mem_id'); ?>"> <span
					class="pull-right red" id="rev_alert"></span>
				<p>
				
				
				</p>
				<div class="form-group">
					<label for="full_name">Full name</label> <input type="text"
						class="form-control" id="rev_full_name" name="rev_full_name"
						placeholder="Enter your full name">
				</div>
				<div class="form-group">
					<label for="email_address">Email </label> <input
						type="email" class="form-control" id="rev_email_address"
						name="rev_email_address" placeholder="Enter new email">
				</div>

				</p>
				<div class="form-group">
					<label for="location">Select Ratting</label> <select
						class="form-control" name="rev_ratting" id="rev_ratting">
						<option value="" selected="selected">Select Ratting</option>
						<option value="5">Excellent *****</option>
						<option value="4">Very Good ****</option>
						<option value="3">Good ***</option>
						<option value="2">Average **</option>
						<option value="1">Poor *</option>
					</select>
				</div>
				
				</p>
				<div class="form-group">
					<label for="rev_description">Enter your review ( Minimum 50
						character )</label>
					<textarea class="full-width text" cols="70" name="rev_description"
						id="rev_description" rows="5"></textarea>
				</div>
				</p>
				<div>
					<button type="button" class="btn btn-warning"
						id="btn_review_submit">Post Review</button>
				</div>
				<div class="clearfix"></div>
			</form>

		</div>
	</div>
	<div class="margin-bottom  small">
		<?php if($reviews){?>
		<?php foreach($reviews as $reviews):?>
		<div class="clearfix margin-bottom border-bottom">

			<div class="col-xs-3 text-muted">
				<div>
					By, <span class="text-info"><?= $reviews->full_name;?></span>
				</div>
				<div class="margin-bottom">On <?= $reviews->posted_on;?></div>
				<div>
				
				
				<?php 		
							$rating = $reviews->experience;
							for ($i = 1; $i <= $rating; $i++) { ?> <img  alt="Responsive image"
								src="<?= base_url();?>/assets/images/1.gif" /> <?php }
								for ($i = 1; $i <= 5 - $rating; $i++) { ?> <img alt="Responsive image"
								src="<?= base_url(); ?>assets/images/0.gif" /> <?php } ?>
				
					
				</div>
			</div>

			<div class="col-xs-9">
				<p><?= $reviews->comment;?></p>

			</div>

		</div>
		
		<?php endforeach;}else{?>
		
		<?php echo "<div class='alert alert-warning'>
  Opps! No review found on this profile....
</div>";}?>
								</div>
